package cn.mily.org.domain;

import cn.mily.basics.domain.BasicDomain;
import lombok.Data;

import java.util.List;

@Data
public class Department extends BasicDomain {
    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*部门状态 0 正常 ，-1 停用*/
    private int state;
    /*上级部门*/
    private  Department parentdept;
    /*上级领导*/
    private Employee manger;
    /*部门层级*/
    private String dirPath;
    /*下级部门*/
    private List<Department> children;

    /*前端取值方法value*/
    public Long getValue(){
        return this.id;
    }

    /*前端取值方法label*/
    public String getLabel(){
        return this.name;
    }
}
